package com.mini.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity(name = "business_cooperative")
@EntityListeners(AuditingEntityListener.class)
public class BusinessCooperativeBean implements Serializable{

	@Id
	private Long id;
	private Integer cooperativeType;
	private Long throwUserId;
	private Long throwRoomId;
	private Long armyGroupId;
	private Long quantumArmyGroupId;
	private Integer projectId;
	private String adChannelCode;
	private String throwProvinceCode;
//	合作状态（1-申请中／待处理 2-已确认／合作中 3-已撤销  4-已解除）
	private Integer cooperativeState;
	private Long createUserId;
	@CreatedDate
	private Date createTime;
	private Long updateUserId;
	@LastModifiedDate
	private Date updateTime;
	private Integer sellApplyDelete;
	private Integer sellCooperativeDelete;
	private Integer throwApplyDelete;
	private Integer throwCooperativeDelete;
}
